package com.cloud.rou.im.connection.instance;

import com.cloud.rou.im.cluster.naming.node.ImServerInstance;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2019-11-12 22:14
 */
public class ImServerInstanceFactory {

    private static ImServerInstance instance;

    public static Long getConnectorId(){
        return instance.getId();
    }

    public static void add(ImServerInstance instance){
        ImServerInstanceFactory.instance=instance;
    }
}
